<?php $toolbarList = array(
	array('uri' => 'javascript:void(0);', 'title' => $this->lang->line('save'), 'class' => 'ico-save'),
	array('uri' => $link_back, 'title' => $this->lang->line('cancel'), 'class' => 'ico-cancel'),
)?>
<?php require_once 'commons/toolbar.php';?>
<div class="success"><?=$message;?></div>
<form id="frmEditAddData" accept-charset="utf-8" method="post" action="<?=$action;?>" enctype="multipart/form-data">
<div class="data">
<table class="wrapper">
	<tr>
		<td width="20%"><?=$this->lang->line('id');?></td>
		<td><input type="text" name="id" disabled class="short_text" value="<?php echo $this->validation->id; ?>"/>
		<input type="hidden" name="id" value="<?php echo $this->validation->id; ?>" /></td>
	</tr>
	<tr>
		<td valign="top"><?=$this->lang->line('name');?><span class="required"> *</span></td>
		<td><input type="text" name="name" class="long_text" value="<?=$this->validation->name;?>"/>
		<?php echo $this->validation->name_error; ?></td>
	</tr>
	<tr>
		<td valign="top"><?=$this->lang->line('image');?></td>
		<td><input type="file" id="image" name="image" class="long_text" value="<?php echo $this->validation->image;?>"/>
		<?php echo $this->validation->image_error; ?></td>
	</tr>
	<tr>
		<td valign="top">&nbsp;</td>
		<td><img src="<?php echo base_url().UPLOAD_PATH.'thumb/'.$this->validation->image?>"/></td>
	</tr>
	<tr>
		<td valign="top"><?=$this->lang->line('type');?><span class="required"> *</span></td>
		<td>
			<select id="type" name="type" class="medium_text" >
				<option value="1" <?=$this->validation->set_select('type', 1);?> ><?=$this->lang->line('client');?></option>
				<option value="2" <?=$this->validation->set_select('type', 2);?> ><?=$this->lang->line('partner');?></option>
				<option value="3" <?=$this->validation->set_select('type', 3);?> ><?=$this->lang->line('ads');?></option>
			</select>
		</td>
	</tr>
</table>
</div>
</form>